import { PageItemRenderer } from "../../../common/renderers/PageItemRenderer";
import { SPlayerItem } from "../../../../../../Message/Public/SPlayerItem";
import { ItemData } from "../../../../resource/info/ItemData";
//class CrossDefenceRewardItemRender
    
    export  class CrossDefenceRewardItemRender extends PageItemRenderer
    {
        constructor()
        {
            super();
            this.mouseChildren = true;
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            var loc1=arg1 as SPlayerItem;
            this.addChild(_item);
            _item.itemData = new ItemData(loc1.itemCode);
            _item.amount = loc1.itemAmount;
            return;
        }
    }
